package shuashuami.hb.com.view;

import android.app.Dialog;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import shuashuami.hb.com.hbclient.R;

/**
 * Created by Administrator on 2017/6/20.
 */
//签到
public class SignDialog extends Dialog {

    public SignDialog(Context context, String jingyan) {
        super(context, R.style.Dialog);
        setCustomDialog(jingyan);
    }

    private void setCustomDialog(String jingyan) {
        View mView = LayoutInflater.from(getContext()).inflate(R.layout.dialog_sign_layout, null);
        TextView tvJingyan = (TextView) mView.findViewById(R.id.tv_sign_jingyanzhi);
        tvJingyan.setText("签到成功，经验值+" + jingyan);
        super.setContentView(mView);
    }

    @Override
    public void setContentView(int layoutResID) {
    }

    @Override
    public void setContentView(View view, ViewGroup.LayoutParams params) {
    }

    @Override
    public void setContentView(View view) {
    }
}
